projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f412623
)
testgtk: Remove deprecations from shapes test
author
Benjamin Otte
<otte@redhat.com>
Wed, 9 Nov 2011 02:15:27 +0000
(
03:15
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 9 Nov 2011 02:23:43 +0000
(
03:23
+0100)
tests/testgtk.c
patch
|
blob
|
history
diff --git
a/tests/testgtk.c
b/tests/testgtk.c
index 53ec833174ccd584b3c9d4fa6e07cd4088d3c5fd..026d32af58454a11959afa231966b038b2eae765 100644
(file)
--- a/
tests/testgtk.c
+++ b/
tests/testgtk.c
@@
-6671,7
+6671,6
@@
shape_motion (GtkWidget *widget,
{
gint xp, yp;
CursorOffset * p;
- GdkModifierType mask;
p = g_object_get_data (G_OBJECT (widget), "cursor_offset");
@@
-6679,7
+6678,9
@@
shape_motion (GtkWidget *widget,
* Can't use event->x / event->y here
* because I need absolute coordinates.
*/
- gdk_window_get_pointer (NULL, &xp, &yp, &mask);
+ gdk_window_get_device_position (gdk_screen_get_root_window (gtk_widget_get_screen (widget)),
+ gdk_event_get_device ((GdkEvent *) event),
+ &xp, &yp, NULL);
gtk_window_move (GTK_WINDOW (widget), xp - p->x, yp - p->y);
}